package pages;

import io.qameta.allure.Allure;
import org.openqa.selenium.By;

public class LoginPage extends BasePage{
    private String url = "http://8.137.19.140:9090/blog_login.html";
    private By username_input = By.cssSelector("#username");
    private By password_input = By.cssSelector("#password");
    private By login_btn = By.cssSelector("#submit");


    public void open_page()
    {
        requestUrl(url);
    }

    public void input_username(String username)
    {
        input(username_input,username);
    }
    public void input_password(String passwd)
    {
        input(password_input,passwd);
    }

    public void click_login_btn()
    {
        click(login_btn);
    }

}
